package com.mall.pay.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

@Data
@ApiModel(value = "收单下单并支付接口参数")
@Builder
public class AliPayDTO {

    @ApiModelProperty(value = "商户订单号", required = true)
    private String out_trade_no;

    @ApiModelProperty(value = "订单金额", required = true)
    private Double total_amount;

    @ApiModelProperty(value = "订单标题", required = true)
    private String subject;

    @ApiModelProperty(value = "销售产品码", required = true, notes = "目前仅支持FAST_INSTANT_TRADE_PAY")
    private String product_code = "FAST_INSTANT_TRADE_PAY";

/*    @ApiModelProperty(value = "商品明细列表")
    private GoodsDetail[] goodsDetail;*/

    @ApiModelProperty(value = "订单绝对超时时间", notes = "格式为yyyy-MM-dd HH:mm:ss。超时时间范围：1m~15d。\n" +
            "注：time_expire和timeout_express两者只需传入一个或者都不传，两者均传入时，优先使用time_expire。")
    private String time_expire;

    @ApiModelProperty(value = "请求来源地址", notes = "如果使用ALIAPP的集成方式，用户中途取消支付会返回该地址。")
    private String request_from_url;

    @ApiModelProperty(value = "商户原始订单号")
    private String merchant_order_no;



}
